package com.etd.base.domain.impl;

import javax.persistence.Column;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler"})
public class BaseTreeDomain extends BaseDomain  {
	
	
	
	@Column
	protected Long parentid;
	
	@Column
	protected String parentName;	
	
	@Column
	private String state="closed";
	
	@Column
	private String fullBizcode;	
	

	

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#getParentid()
	 */
	
	public Long getParentid() {
		// TODO Auto-generated method stub
		return this.parentid;
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#setParentid(java.lang.Long)
	 */
	
	public void setParentid(Long _id) {
		// TODO Auto-generated method stub
		
			this.parentid = _id;
		
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#getState()
	 */
	
	public String getState() {
		// TODO Auto-generated method stub
		return this.state;
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#setState(java.lang.String)
	 */
	
	public void setState(String _state) {
		// TODO Auto-generated method stub
		this.state = _state;
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#getText()
	 */
	
	public String getText() {
		// TODO Auto-generated method stub
		return this.getName();
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#toTreeString()
	 */
	
	public String toTreeString() {
		// TODO Auto-generated method stub
		return null;
	}

	

	

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#getParentName()
	 */
	public String getParentName() {
		return parentName;
	}

	/* (non-Javadoc)
	 * @see org.brisling.domain.common.BaseTreeDomainInf#setParentName(java.lang.String)
	 */
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getFullBizcode() {
		return fullBizcode;
	}

	public void setFullBizcode(String fullBizcode) {
		this.fullBizcode = fullBizcode;
	}
	
	
	
}
